package per.hx.bs.entity.yw;

import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.fasterxml.jackson.annotation.JsonView;
import per.hx.bs.base.entity.BaseEntity;

import java.io.Serializable;

/**
 * @author HuXing
 * @date 2018/4/14  10:37
 */
@TableName("yw_appraisal_type")
public class YwAppraisalTypeDO extends BaseEntity<YwAppraisalTypeDO> {

    @TableId
    private String id;
    /**
     * 值
     */
    @JsonView
    private String appraisalValue;
    /**
     * 名称
     */
    private String appraisalName;
    /**
     * 排序号码
     */
    private Integer serialNo;

    /**
     * 显示id
     */
    private String showId;


    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getAppraisalValue() {
        return appraisalValue;
    }

    public void setAppraisalValue(String appraisalValue) {
        this.appraisalValue = appraisalValue;
    }

    public String getAppraisalName() {
        return appraisalName;
    }

    public void setAppraisalName(String appraisalName) {
        this.appraisalName = appraisalName;
    }

    public Integer getSerialNo() {
        return serialNo;
    }

    public void setSerialNo(Integer serialNo) {
        this.serialNo = serialNo;
    }

    public String getShowId() {
        return showId;
    }

    public void setShowId(String showId) {
        this.showId = showId;
    }

    @Override
    public String toString() {
        return "YwAppraisalTypeDO{" +
                "id='" + id + '\'' +
                ", appraisalValue='" + appraisalValue + '\'' +
                ", appraisalName='" + appraisalName + '\'' +
                ", serialNo=" + serialNo +
                ", showId='" + showId + '\'' +
                '}';
    }

    public YwAppraisalTypeDO() {
    }

    public YwAppraisalTypeDO(String appraisalValue) {
        this.appraisalValue = appraisalValue;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }
}
